package com.unknown;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;

import org.springframework.jms.support.converter.MessageConversionException;
import org.springframework.jms.support.converter.MessageConverter;

public class PassthruMessageConverter implements MessageConverter {

	public Object fromMessage(Message arg0) throws JMSException, MessageConversionException {
		return arg0;
	}

	public Message toMessage(Object arg0, Session arg1) throws JMSException, MessageConversionException {
		return arg1.createTextMessage(arg0.toString());
	}

}
